<div nz-row>
  <div nz-col nzSpan="20">
    <dhl-input name="角色名字" code="name" [value]="name" labelWidth=5></dhl-input>
  </div>
</div>
<div nz-row>
  <div nz-col nzSpan="20">
    <dhl-input name="角色代码" code="code" [value]="code" [disabled]="code != undefined" labelWidth=5></dhl-input>
  </div>
</div>
<div nz-row>
  <div nz-col nzSpan="20">
    <dhl-switch name="新增用户权限" code="addUserPer" [value]="addUserPer" labelWidth=5></dhl-switch>
  </div>
</div>
<div nz-row>
  <div nz-col nzSpan="20">
    <dhl-switch name="修改用户权限" code="updateUserPer" [value]="updateUserPer" labelWidth=5></dhl-switch>
  </div>
</div>
<div nz-row>
  <div nz-col nzSpan="20">
    <dhl-switch name="删除用户权限" code="deleteUserPer" [value]="deleteUserPer" labelWidth=5></dhl-switch>
  </div>
</div>
<div nz-row>
  <div nz-col nzSpan="20">
    <dhl-check name="可选角色权限" code="mgRoleIds" [options]="roleOptions" [value]="mgRoleIds" [spaceWidth]="10"
               labelWidth=5>

    </dhl-check>
  </div>
</div>
<div nz-row *ngIf="projectCode=='rpmp'">
  <div nz-col nzSpan="20">
    <dhl-check name="管理的用户权限" code="mgAcctIds" [options]="roleOptions" [value]="mgAcctIds" [spaceWidth]="10"
               labelWidth=5>

    </dhl-check>
  </div>
</div>

<div nz-row>
  <div nz-col nzSpan="20">
    <dhl-tree name="使用权限"
              code="roleTreeIds"
              [rootCode]="menuRootCode"
              [isCheck]="true"
              [value]="actionTreeIds"
              [domain]="'menu,action'"
              [maxHeight]="300"
              labelWidth="5"></dhl-tree>

  </div>
</div>

<!--<div nz-row>
  <div nz-col nzSpan="20">
    <dhl-tree name="数据权限"
              code="dataTreeIds"
              [rootCode]="'area_data_root'"
              [isCheck]="true"
              [value]="areaCodes"
              [domain]="'dataper'"
              [maxHeight]="300"
              labelWidth="5"></dhl-tree>

  </div>
</div>-->

<dhl-input hidden code="id" [value]="id"></dhl-input>
<dhl-input hidden code="projectId" [value]="projectId"></dhl-input>
<dhl-input hidden code="joinDomain" [value]="joinDomain"></dhl-input>

